package com.xinqi.modules.prepare.prepare.client;

import com.xinqi.common.base.constants.ServiceNameConstants;
import com.xinqi.common.base.response.R;
import com.xinqi.modules.prepare.homework.factory.PrepareHomeworkFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 备课区作业客户端
 *
 * @author: system
 * @date: 2023/03/19
 */
@FeignClient(value = ServiceNameConstants.XQ_PREPARE, fallbackFactory = PrepareHomeworkFallbackFactory.class)
public interface PrepareClient {

    /**
     * 创建默认备课区
     */
    @GetMapping("/inner/prepare/create/default/{userId}")
    public R<String> createDefault(@PathVariable("userId") Long userId);

}
